import request from '@/utils/request'

// 查询非遗习俗列表
export function listMores(query) {
  return request({
    url: '/books/mores/list',
    method: 'get',
    params: query
  })
}

// 查询非遗习俗详细
export function getMores(moresId) {
  return request({
    url: '/books/mores/' + moresId,
    method: 'get'
  })
}

// 新增非遗习俗
export function addMores(data) {
  return request({
    url: '/books/mores',
    method: 'post',
    data: data
  })
}

// 修改非遗习俗
export function updateMores(data) {
  return request({
    url: '/books/mores',
    method: 'put',
    data: data
  })
}

// 删除非遗习俗
export function delMores(moresId) {
  return request({
    url: '/books/mores/' + moresId,
    method: 'delete'
  })
}
